<<<<<<< HEAD
{extend name="main/index" /}
{block name="main"}

<!-- Start right content -->
        <div class="content-page">
			<!-- ============================================================== -->
			<!-- Start Content here -->
			<!-- ============================================================== -->
            <div class="content">
								<!-- Page Heading Start -->
				<div class="page-heading">
            		<h1><i class='fa fa-table'></i>{$title1}</h1>
            		<h3>Basic & Simple Sortable Tables</h3>            	</div>
            	<!-- Page Heading End-->				<!-- Your awesome content goes here -->
				<div class="row">
				
					<div class="col-md-12">
						<div class="widget">
							<div class="widget-header transparent">
								<h2><strong>{$title2}</strong> Table</h2>
								<div class="additional-btn">
									<a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
									<a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
									<a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
								</div>
							</div>
							<div class="widget-content">					
								<div class="table-responsive">
									<table data-sortable class="table">
										<thead>
											<tr>
												<th>No</th>
												<th style="width: 30px" data-sortable="false"><input type="checkbox" class="rows-check"></th>
												<th>id</th>
												<th>单元名</th>
												<th>所属课程id</th>
												<th>级别</th>
												
												
												<th data-sortable="false">操作</th>
											</tr>
										</thead>
										
										<tbody>
										{volist name="unite" key="k" id="v"}
											<tr>
												<td>{$k}</td>
												<td><input type="checkbox" class="rows-check"></td>
												<td><strong>{$v['id']}</strong></td>
												<td>{$v['name']}</td>
												<td>{$v['courseid']}</td>
												<td>{$v['level']}</td>
												
												
												<td>
													<div class="btn-group btn-group-xs">
														<a class="btn btn-danger" title="删除该单元" href="/sc_unite/{$v['id']}"><i class="fa fa-trash-o"></i></a>
                                            			<a data-toggle="tooltip" title="添加class" class="btn btn-success" href="/add_class/{$v['id']}"><i class="fa fa-plus-circle"></i></a>
                                            			<a class="btn btn-primary" title="查看class" href="/see_class/{$v['id']}"><i class="fa icon-eye-1"></i></a>
													</div>
												</td>
											</tr>
											
											{/volist}
											
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
				


				<div class="box-info animated fadeInDown">
					<h3>{$title3} column</h3>
					<div class="gallery-wrap">
					{volist name="picture" key="k" id="v"}
						<div class="column-3">
							<div class="inner">
								<a class="zooming" href="/uploads/{$v['address']}" title="Image title here">
								<div class="img-wrap">
									<img src="/uploads/{$v['address']}" alt="Image gallery" title="{$v['cover']==1?'封面':'详情'}" class="mfp-fade">
								</div>
								<div class="caption-hover">
								<a class="btn btn-danger" href="/del_picture/{$v['id']}">删除该图片</a>
								<a class="btn btn-default" href="/cps/{$v['id']}/{$v['cover']}">改为{$v['cover']==1?'详情':'封面'}</a>
								</div>
								</a>
							</div>
						</div>
					{/volist}
					</div>
				</div>

				            <!-- Footer Start -->
            <footer>
                Huban Creative &copy; 2014
                <div class="footer-links pull-right">
                	<a href="#">About</a><a href="#">Support</a><a href="#">Terms of Service</a><a href="#">Legal</a><a href="#">Help</a><a href="#">Contact Us</a>
                </div>
            </footer>
            <!-- Footer End -->			
            </div>
			<!-- ============================================================== -->
			<!-- End content here -->
			<!-- ============================================================== -->

        </div>
		<!-- End right content -->

{/block}

